package com.mjlf.framework.mvc.eneity;

import java.lang.reflect.Method;

/**
 * 这个类中包括请求的路径的具体方法
 */
public class RequestMethod {

    private Object reqObj; //请求视图，被Controller注解标注的类实例
    private Method reqMethod;   //标注有@RequestMapping注解的方法

    public RequestMethod() {
    }

    public RequestMethod(Object reqObj, Method reqMethod) {
        this.reqObj = reqObj;
        this.reqMethod = reqMethod;
    }

    public Object getReqObj() {
        return reqObj;
    }

    public void setReqObj(Object reqObj) {
        this.reqObj = reqObj;
    }

    public Method getReqMethod() {
        return reqMethod;
    }

    public void setReqMethod(Method reqMethod) {
        this.reqMethod = reqMethod;
    }

    @Override
    public String toString() {
        return "RequestMethod{" +
                "reqObj=" + reqObj +
                ", reqMethod=" + reqMethod +
                '}';
    }
}
